<template>
  <div class="homePerformance">
    <!-- 总业绩栏 -->
    <div class="performance">
      <div class="total">
        <p class="title">总业绩（元）</p>
        <p class="price">52400.00</p>
         <i class="triangle"></i>
      </div>
      <p class="performance-info">佣金：<span class="red">5600</span> （元）发展下线人数：<span class="red">200</span> （人）</p>
    </div>
    <div class="detail" @click="handleToggle">查看全部详情 <i :class="toggleIcon"></i></div>
    <div v-show="show">
      <!-- 详细列表 -->
      <div class="detail-list">
        <!-- <template v-for="(item,index) in Productitems" :key="index"> -->
        <div class="list clearfix">
          <div class="list-tit">
            <span class="tit">订单号：<span class="num">223458962148</span></span>
          </div>
          <div class="pImg fl">
           <img  src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1512191560341&di=85f40065fe1635ff9575bb2e909eab18&imgtype=0&src=http%3A%2F%2Fwww.fzlqqqm.com%2Fuploads%2Fallimg%2F20150207%2F20150207125610343.jpg" alt="">
          </div>
         <div class="pInfo fl">
           <p>张某某 <i>一级会员</i></p>
           <p class="grey">订单金额： <span>¥300</span></p>
           <p class="grey">产生佣金： <span>¥600</span></p>
           <p class="grey">交易时间： 2017-11-26</p>
         </div>
        </div>
        <!-- </template> -->
           <div class="list clearfix">
          <div class="list-tit">
            <span class="tit">订单号：<span class="num">223458962148</span></span>
          </div>
          <div class="pImg fl">
           <img  src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1512191560341&di=85f40065fe1635ff9575bb2e909eab18&imgtype=0&src=http%3A%2F%2Fwww.fzlqqqm.com%2Fuploads%2Fallimg%2F20150207%2F20150207125610343.jpg" alt="">
          </div>
         <div class="pInfo fl">
           <p>张某某 <i>一级会员</i></p>
           <p class="grey">订单金额： <span>¥300</span></p>
           <p class="grey">产生佣金： <span>¥600</span></p>
           <p class="grey">交易时间： 2017-11-26</p>
         </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      show: true
    }
  },
  methods: {
    handleToggle () {
      this.show = !this.show
    }
  },
  computed: {
    toggleIcon: function () {
      return this.show ? 'el-icon-arrow-up' : 'el-icon-arrow-down'
    }

  }
}
</script>

<style lang="scss" type="stylesheet/scss">
.homePerformance{
  font-size: 12px;
  .performance{
    height: 214px;
    background-color: #F6F6F6;
    padding-top: 25px;
    .total{
      margin: 0 auto;
      width: 177px;
      height: 86px;
      background-color: #fff;
      padding-top: 8px;
      position: relative;
      .title{
        font-size: 16px;
        color:#31BE2A;
        line-height: 40px;
      }
      .price{
        font-size: 25px;
        color:#4B9E44;
      }
      .triangle{
        display: inline-block;
        border-top: 12px solid #fff;
        border-bottom: none;
        border-right: 12px solid transparent;
        border-left: 12px solid transparent;
        position: absolute;
        bottom: -10px;
        left: 76px;

      }
    }
    .performance-info{
      margin-top: 40px;
      font-size: 14px;
      .red{
        color:red;
      }
    }
  }
  .detail{
    height: 40px;
    background-color: #DEDEDE;
    line-height: 40px;
  }
  .detail-list{
    background-color: #F6F6F6;
    margin-bottom: 60px;
    .list{
      background-color:#FFF;
      margin-bottom: 10px;
      text-align: left;
      padding-bottom: 10px;
      
        .list-tit{
          height: 35px;
          line-height: 35px;
          margin-bottom: 21px;
          border-bottom: 1px solid #ccc;
          .tit{
            border-left: 3px solid #31BE2A;
            padding-left:5px;
          }
          .num{
            color:#828282;
          }
        }
        .pImg{
          margin-left: 11px;
          width:82px;
          height: 82px;
          overflow: hidden;
          border-radius: 50%;
          img{
            width:82px;
            height: 82px;
          }
          }
        .pInfo{
          margin-left: 20px;
          span{
            color:red;
          }
          i{
            background-color: #44A439;
            color: #fff;
            border-radius: 2px;
            padding: 0 2px;
            margin-left: 10px;
          }
          .grey{
            color:#686868;
          }
        }
      }
    }
}
</style>
